cmake_minimum_required(VERSION 3.4)
project(TEST)

option(BUILD_SHARED_LIBS "Build shared libraries" ON)
if (${BUILD_SHARED_LIBS})
    set(CMAKE_WINDOWS_EXPORT_ALL_SYMBOLS ON)
else()
    set(CMAKE_WINDOWS_EXPORT_ALL_SYMBOLS OFF)
endif()


add_library(lib1 lib1.cpp)

add_library(lib2 lib2.cpp)

add_executable(main main.cpp)

target_link_libraries(main lib1 lib2)
